﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Recomment_list.aspx.cs"
    Inherits="TRPOP.CMS.Web.Admin.Recomment_list" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>评论列表-<%=base.m_strBaseAdminPageName%></title>
    <script src="../../js/jquery.js" type="text/javascript"></script>
    <script src="../../js/utils.js" type="text/javascript"></script>
    <script src="../js/jquery.form.js" type="text/javascript"></script>
    <script src="../js/utils.js" type="text/javascript"></script>
</head>
<body>
    <form id="Form2" runat="server">
    <table id="page_navigator">
        <tr>
            <td class="align_l">
                当前位置：评论管理 ->
                <%=m_title %>
            </td>
        </tr>
    </table>
    <table class="table_search" cellpadding="0" cellspacing="2" width="100%" border="0">
        <tr>
            <td height="20" nowrap="nowrap" width="50">
                新闻ID
            </td>
            <td nowrap="nowrap" width="150">
                <cms:TextBox runat="server" ID="txtContentid" Width="100" />
            </td>
            <td align="right" nowrap="nowrap" width="150">
                按点击日期查询:
            </td>
            <td align="left" nowrap="nowrap" width="260">
                <cms:TextBox runat="server" ID="txtAddTimeBegin" ToolTip="开始时间" onclick="javascript:return new Calendar.display(this.id,event);"
                    Width="100px" />
                ~
                <cms:TextBox runat="server" ID="txtAddTimeEnd" ToolTip="结束时间" onclick="javascript:return new Calendar.display(this.id,event);"
                    Width="100px" />
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                <cms:Button CssClass="button_style" runat="server" Text=" 搜 索 " ID="btSearch" OnClick="btSearch_Click" /><span
                    class="ltsep">(仅限当前位置)</span>
            </td>
        </tr>
    </table>
    <table class="table_list">
        <tbody>
            <tr align="center">
                <th class="rptlistTitle" width="10%">
                    <strong>新闻ID</strong>
                </th>
                <th class="rptlistTitle" width="25%">
                    <strong>新闻标题</strong>
                </th>
                <th class="rptlistTitle" width="25%">
                    <strong>评论标题</strong>
                </th>
                <th>
                    <strong>评论者</strong>
                </th>
                <th>
                    <strong>评论时间</strong>
                </th>
                <th>
                    <strong>审核状态</strong>
                </th>
                <th>
                    <strong>操作</strong>
                </th>
            </tr>
            <cms:Repeater ID="rptList" runat="server">
                <ItemTemplate>
                    <tr class="tr_listitem">
                        <td class="align_c" align="center">
                            <%# Eval("contentID")%>
                        </td>
                        <td class="align_c" align="center">
                            <a href="<%#Eval("contentURL") %>" target="_blank">
                                <%# Eval("contentName")%>
                            </a>
                        </td>
                        <td class="align_c" align="center">
                            <%# Eval("recName")%>
                        </td>
                        <td class="align_c">
                            匿名
                        </td>
                        <td class="align_c">
                            <%# Eval("addtime")%>
                        </td>
                        <td class="align_c <%# Eval("IsAudit").ToString().ToLower() == "true" ? "FontNormal" : "FontWarn"%>">
                            <%# Eval("IsAudit").ToString().ToLower() == "true" ? "<font class=\"FontNormal\">通过<font>" : "<font class=\"FontWarn\">未审核<font>"%>
                        </td>
                        <td class="align_c">
                            <a href="Recomment_save.aspx?id=<%# Eval("RecomId")%>">审核</a>
                            <cms:LinkButton ID="lbtnDelete" runat="server" Text="删除" OnClick="lbtnDelete_Click"
                                CommandArgument='<%#Eval("RecomId") %>' OnClientClick="return confirm('你确定要删除吗？');"></cms:LinkButton>
                        </td>
                    </tr>
                </ItemTemplate>
            </cms:Repeater>
        </tbody>
    </table>
    <table class="table_operator">
        <tr class="tr_pager">
            <td colspan="4">
                <cms:PagerGet ID="Pager" runat="server" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
